//
//  UIBarButtonItem+YCTools.h
//  Pods
//
//  Created by Apple on 2022/11/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIBarButtonItem (YCTools)

//+ (UIBarButtonItem *)blackBackButtonItemWithTarget:(id)target action:(SEL)seltor;
//
//+ (UIBarButtonItem *)whiteBackButtonItemWithTarget:(id)target action:(SEL)seltor;

+ (UIBarButtonItem *)BBIWithImage:(UIImage *)image
                           target:(id)target
                           action:(SEL)seltor;

+ (UIBarButtonItem *)BBIWithText:(NSString *)text
                           color:(UIColor *)color
                            font:(UIFont *)font
                          target:(id)target
                          action:(SEL)seltor;

/// 创建BarButtonItem
/// - Parameters:
///   - text: 文本
///   - color: 文本颜色
///   - fontSize: 文本大小
///   - borderWidth: 边框
///   - borderColor: 边框颜色
///   - space: 文字与边框的间隙
///   - target: 目标类
///   - seltor: 方法
+ (UIBarButtonItem *)BBIWithText:(NSString *)text
                           color:(UIColor *)color
                            font:(UIFont *)font
                     borderWidth:(CGFloat)borderWidth
                     borderColor:(UIColor *)borderColor
                           space:(CGFloat)space
                          target:(id)target
                          action:(SEL)seltor;

@end

NS_ASSUME_NONNULL_END
